const dic = {
  status_type: [
    {
      label: '有效',
      value: '1'
    },
    {
      label: '无效',
      value: '2'
    }
  ]
}
export const option = {
  border: true,
  stripe: true,
  addBtn: false,
  editBtn: false,
  viewBtn: false,
  printBtn: false,
  simplePage: true,
  searchBtnText: '搜索',
  emptyBtnText: '清空',
  dialogType: 'drawer',
  align: 'center',
  searchMenuSpan: 6, //搜索按钮是否单独成行
  index: true,
  indexLabel: '序号',
  column: [
    {
      label: '供应商编码',
      prop: 'supplierCode',
      searchLabelWidth: 110, //搜索label宽度
      search: true, //启动搜索
      searchSpan: 6, // 搜索栏 布局
      minWidth: 120
    },
    {
      label: '供应商名称',
      prop: 'supplierName',
      searchLabelWidth: 110, //搜索label宽度
      search: true, //启动搜索
      searchSpan: 6, // 搜索栏 布局
      minWidth: 150
    },
    {
      label: '供应商身份',
      prop: 'supplierIentity',
      minWidth: 120
    },
    {
      label: '物料分类编码',
      prop: 'classifyCode',
      searchLabelWidth: 110, //搜索label宽度
      search: true, //启动搜索
      searchSpan: 6, // 搜索栏 布局
      minWidth: 100
    },
    {
      label: '物料分类名称',
      type: 'select',
      prop: 'classifyName',
      searchslot:true,
      searchLabelWidth: 110,
      searchSpan: 6,
      search: true,
      minWidth: 120
    },
    {
      label: '负责人',
      prop: 'purchaseEngineer',
      searchLabelWidth: 110,
      searchSpan: 6,
      search: true,
      minWidth: 100
    },
    {
      label: '有效期起',
      prop: 'validityPeriodBegin',
      type: 'datetime',
      format: 'yyyy-MM-dd',
      valueFormat: 'yyyy-MM-dd',
      minWidth: 140
    },
    {
      label: '有效期止',
      prop: 'validityPeriodEnd',
      type: 'datetime',
      format: 'yyyy-MM-dd',
      valueFormat: 'yyyy-MM-dd',
      minWidth: 140
    },
    {
      label: '状态',
      prop: 'status',
      type: 'select',
      dicData: dic.status_type,
      props: {
        label: 'label',
        value: 'value'
      },
      searchLabelWidth: 110,
      searchMultiple:true,
      searchSpan: 6,
      slot: true,
      search: true,
      minWidth: 100
    }
  ]
}

export const page = {
  currentPage: 1,
  total: 40,
  layout: 'total, sizes, prev, pager, next, jumper',
  pageSizes: [10, 20, 50, 100],
  pageSize: 10
}
